#!/bin/bash
PWD=$(cd $(dirname ${BASH_SOURCE[0]}); pwd )
#docker network create dbnet
docker run --name e7mysql -d --restart always --network dbnet -p 3306:3306  -v $PWD/data:/opt/mysql/data -e MYSQL_ALLOW_EMPTY_PASSWORD=yes e7sky/mysql:5.6.39
#docker run --name e7mysql --network dbnet --rm -it -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes e7sky/mysql:5.6.39
# docker run --name e7mysql --rm -it -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes e7sky/mysql:5.6.39-x